#--- Listener.DeRez script -------------------------------------------------
# Copyright 1998-1998, Adobe Systems, Incorporated.
# All Rights Reserved.
#
# This script is used to compile the PiPL, PIMI, and other resources
# for this example plug-in.  Use this script if you are using ToolServer
# with the Metrowerks CodeWarrior compiler.  If you are using MPW, you
# should use the Makefile instead.
#
# To use this script:
# -------------------
# (1) In CodeWarrior, start ToolServer (under the Tools menu).  If ToolServer
#     is not installed, refer to the release notes on the CodeWarrior CD.
#
# (2) Open this file in CodeWarrior.
#
# (3) Set the first variable, Root, to point to the root folder for your
#     Photoshop SDK files.  Save any changes.
#
# (4) Choose "Execute as a Script" under the ToolServer menu icon.
#----------------------------------------------------------------------------

Set Root "Acehd3:Dev:Projects:SDK:Macintosh"
Set MWCWIncludes "Acehd3:Dev:Tools:CodeWarrior :Metrowerks CodeWarrior:MacOS Support:Headers:Rez Headers:"
Set Headers "{Root}:SampleCode:Common:Headers:Photoshop:"
Set RezFiles "{Root}:SampleCode:Common:Rez-files:Photoshop:"
Set Source "{Root}:SampleCode:Automation:Listener:"
Set SourceName "Listener"

Echo
Echo
Echo
Echo
Echo
Echo
Echo
Echo
Echo
Echo
Echo
Echo
Echo
Echo
Echo
Echo
Echo
Echo
Echo "Executing {Sourcename} DeRez script..."

# -only 'Path' -only 'DLOG' -only 'DITL'  # -- add to limit derez to just those types
# {RezFiles}":PIGeneral.r" 
      
DeRez "{Source}{SourceName}-derez.rsrc" 
	  "{RIncludes}Types.r" 
	  "{RIncludes}SysTypes.r" 
	  "{RezFiles}PIGeneral.r" 
      -i "{Headers}" -d Macintosh=1 -d MSWindows=0 > {Source}{SourceName}"-derez.r"

Echo "{SourceName} DeRez done."